-- GENERATED SPELL FOR [Anvilrage Marshal] --


function spell0_8898(pUnit, Event) --@Devotion Aura,Self--
pUnit:FullCastSpellOnTarget(8258,pUnit)
pUnit:RegisterEvent('Sorts_8898', 674, 1)
end

function spell1_8898(pUnit, Event) --@Holy Light,Heal--
pUnit:FullCastSpellOnTarget(15493,pUnit)
pUnit:RegisterEvent('Sorts_8898', 2500, 1)
end

function spell2_8898(pUnit, Event) --@Holy Strike,n/a--
pUnit:FullCastSpellOnTarget(13953,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_8898', 569, 1)
end

function Sorts_8898(pUnit, Event)
local choix_sorts_8898 = math.random(0, 2)
if choix_sorts_8898 == 0 then
pUnit:RegisterEvent('spell0_8898', 1, 1)
end
if choix_sorts_8898 == 1 then
pUnit:RegisterEvent('spell1_8898', 1, 1)
end
if choix_sorts_8898 == 2 then
pUnit:RegisterEvent('spell2_8898', 1, 1)
end
end

function mob8898_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_8898', math.random(1500, 3000), 1)
end

function mob8898_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8898_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob8898_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(8898, 1, 'mob8898_Action')
RegisterUnitEvent(8898, 2, 'mob8898_Leave')
RegisterUnitEvent(8898, 3, 'mob8898_Kill')
RegisterUnitEvent(8898, 4, 'mob8898_Die')
